<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php __('Javan IT Services : Internal Use Only'); ?>
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');
		echo $this->Html->css('reset');
		echo $this->Html->css('text');
		echo $this->Html->css('960');
		echo $this->Html->css('table');
		echo $this->Html->css('menu');
		echo $this->Html->css('cake.generic');
		echo $this->Html->css('form');
		echo $scripts_for_layout;
	?>
    <script type="text/javascript">

    </script>

</head>
<body>
    <div id="logo_internal"><?php echo $this->Html->image("logo_internal.png") ?></div>
    <div id="menubar"></div>
    <div id="tab" class="tab">
        <div class="container_16">
            <div class="grid_4">
                <span id='status'>status</span>
            </div>
            <div class="grid_4">
                <div class='time'><?php echo $startTime ?></div>
                <div class='desc'>Jam Masuk</div>
            </div>
            <div class="grid_4">
                <div class='time' id='activeTime'><?php echo $activeTime ?></div>
                <div class='desc'>Waktu Aktif Hari Ini</div>
            </div>
            <div class="grid_4">
                <div class='time'><?php echo $lateTime ?></div>
                <div class='desc'>Terlambat Bulan Ini</div>
            </div>
        </div>
        <div class='clear'></div>
    </div>

	<div id="container" class="container_16">
        <div id="content">
            <div class="grid_4">
                <div id="today" class='box' >Logged in as <span style='color:#438b9a'><?php echo $authorizedUser['User']['fullname'] ?></span></div>
                <?php $i=0; ?>
                <?php foreach($m as $module):?>
                    <?php
                        $class = 'top';
                        if($i==0){
                            $class = 'top_first';
                        }
                    ?>
                    <div class="grid_4 alpha omega box_4">
                        <div class="<?php echo $class ?>"><h4><?php echo $module['name'] ?></h4></div>
                        <div class="spacer">
                            <ul class="sidenav">
                                <?php foreach($module['Menu'] as $menu):?>
                                <li><?php echo $this->Html->link("<span>{$menu['label']}</span>",$menu['link'], array("escape" => false,"class"=>($currentMenu=="activity")?"current":""));?></li>
                                <?php endforeach;?>
                            </ul>
                        </div>
                        <?php if($i == count($m) - 1): ?>
                        <div class="bottom"></div>
                        <?php endif; ?>
                    </div>
                <?php $i++; ?>
                <?php endforeach;?>
                <hr class="spacer" />
                <?php if(isset($authorizedUser)) : ?>
                    <div class="grid_4  alpha omega box_4">
                        <div class="top_first"><h4></h4></div>
                        <div class="spacer">
                            <ul class="sidenav">
                                <li>
                                    <?php echo $this->Html->link("<span>End Work</span>","/login", array("escape" => false)); ?>
                                </li>
                            </ul>
                        </div>
                        <div class="bottom"></div>
                    </div>
                <?php endif; ?>
            </div>
            <div class="grid_12">
                <?php echo $content_for_layout; ?>
            </div>
		</div>
        <div class="clear"></div>
	</div>
    <div id="footer">
        <div id="copy"><span>Copyleft 2010</span> <a href="http://www.javan.co.id" target="_blank">Javan IT Services</a></div>
		<div id="footer">
			<?php $this->Html->link(
					$this->Html->image('cake.power.gif', array('alt'=> __('CakePHP: the rapid development php framework', true), 'border' => '0')),
					'http://www.cakephp.org/',
					array('target' => '_blank', 'escape' => false)
				);
			?>
		</div>
    </div>
    <?php echo $this->element('sql_dump'); ?>
</body>
</html>
